﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Logistics.Server.Service
{
    public interface IDateService
    {
        /// <summary>
        /// 获取用户状态
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="psd"></param>
        /// <returns>0：停用，-1：不存在；1：可用</returns>
        int GetUserState(string userName, string psd);
        /// <summary>
        /// 申请注册（C/S专用）
        /// </summary>
        /// >MAC地址
        /// 硬盘型号
        /// CPU型号
        /// IP
        /// 主机名
        /// 创建人
        ///备注
        /// <returns>成功：1；失败：0</returns>
        string ApplicationRegedit(List<string> list);

        /// <summary>
        /// 客户端上传运单信息
        /// </summary>
        /// <param name="columns">列名</param>
        /// <param name="list">数据集</param>
        /// <param name="index">主键位置</param>
        /// <returns></returns>
        int AddListData(string columns, List<string> list, int index);
        /// <summary>
        /// DbSQL.ExecuteSql(sql)
        /// </summary>
        /// <param name="sql">string</param>
        /// <returns>int</returns>
        int ExecuteCountSql(string sql);
        /// <summary>
        /// 上传日志-新修改
        /// </summary>
        /// <param name="table"></param>
        /// <param name="columns"></param>
        /// <param name="lstValues"></param>
        /// <returns></returns>
        int UpLoadLogs(string table, string columns, List<string> lstValues);
        /// <summary>
        /// 获取服务器数据集
        /// </summary>
        /// <param name="where"></param>
        /// <param name="FieldSet"></param>
        /// <param name="tabTable"></param>
        /// <returns></returns>
        DataSet GetSynchronous(string where, string FieldSet, string tabTable);
    }
}
